package com.customer.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.mall.domain.Banner;
import com.customer.mall.domain.vo.BannerVO;
import com.customer.mall.util.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BaiGGG
 * @since 2023-06-25
 */
public interface IBannerService extends IService<Banner> {

    ResponseResult<Page<BannerVO>> pageBanner(Integer pageNum, Integer pageSize);

    ResponseResult<BannerVO> getBannerById(Integer id);

    ResponseResult<String> insertBanner(Banner banner);

    ResponseResult<String> updateBanner(Banner banner);

    ResponseResult<String> setState(Integer id);

    ResponseResult<Banner> getBannerAllById(Integer id);
}
